package com.ctgu.computer.mapper;
;
import com.ctgu.computer.domain.dto.UserPageDTO;
import com.ctgu.computer.domain.po.UserInfo;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {


    @Select("select * from user_info where user_id=#{userId}")
    UserInfo selectUserInfoById(Integer userId);

    void updateStatusByIds(List<Integer> ids);

    Page<UserInfo> list(UserPageDTO userPageDTO);

    @MapKey("userId")
    Map<Integer,UserInfo> selectUserNameByIds( List<Integer> senderIds);

    void update(UserInfo newUserInfo);

    void batchDelete(List<Integer> ids);
}
